package com.nervenets.template.controller.common.params;

import com.nervenets.general.web.params.TreeFormParams;
import com.nervenets.template.hibernate.domain.common.City;
import com.nervenets.template.service.CityService;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.Positive;

@EqualsAndHashCode(callSuper = true)
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class CityFormParams extends TreeFormParams<City, CityService> {
    @ApiModelProperty("国家城市标准代码（必须与定位的相符合）")
    @Positive
    private int code;

}
